// ======= 成绩分析函数 =======
function analyzeGrades(scores) {
    // 1. 输入验证
    if (!Array.isArray(scores) || scores.length === 0) {
        throw new Error("输入必须为非空数组！");
    }

    for (let score of scores) {
        if (typeof score !== "number" || isNaN(score) || score < 0 || score > 100) {
            throw new Error("数组中必须全部是 0~100 的有效数字！");
        }
    }

    const total = scores.length;

    // 2. 计算平均分
    let sum = 0;
    for (let s of scores) sum += s;
    const average = (sum / total).toFixed(2);

    // 3. 寻找最高分和最低分
    let max = scores[0];
    let min = scores[0];
    for (let s of scores) {
        if (s > max) max = s;
        if (s < min) min = s;
    }

    // 4. 统计及格率 ≥ 60
    let passCount = 0;
    for (let s of scores) {
        if (s >= 60) passCount++;
    }
    const passRate = ((passCount / total) * 100).toFixed(2) + "%";

    // 5. 分数段统计
    const distribution = {
        "90-100": { count: 0, percentage: "0.00%" },
        "80-89": { count: 0, percentage: "0.00%" },
        "70-79": { count: 0, percentage: "0.00%" },
        "60-69": { count: 0, percentage: "0.00%" },
        "0-59": { count: 0, percentage: "0.00%" }
    };

    for (let s of scores) {
        if (s >= 90) distribution["90-100"].count++;
        else if (s >= 80) distribution["80-89"].count++;
        else if (s >= 70) distribution["70-79"].count++;
        else if (s >= 60) distribution["60-69"].count++;
        else distribution["0-59"].count++;
    }

    // 计算比例 %
    for (let key in distribution) {
        distribution[key].percentage =
            ((distribution[key].count / total) * 100).toFixed(2) + "%";
    }

    // 6. 返回结果
    return {
        total,
        average: Number(average),
        max,
        min,
        passRate,
        distribution
    };
}


// =================== 测试输入代码 ===================
const readline = require('readline');

const rl = readline.createInterface({
    input: process.stdin,
    output: process.stdout
});

rl.on('line', (input) => {
    try {
        // 输入格式：如 89 76 100 58 92
        const scoresArray = input.trim().split(/\s+/).map(Number);

        // 输入检查
        if (scoresArray.some(n => isNaN(n))) {
            throw new Error("请输入用空格分隔的数字成绩！");
        }

        const result = analyzeGrades(scoresArray);
        console.dir(result, { depth: null });
    } catch (error) {
        console.error(error.message);
    } finally {
        rl.close();
    }
});